.class public Lcom/instagram/android/fragment/dw;
.super Lcom/instagram/android/fragment/d;
.source "MainFeedFragment.java"

# interfaces
.implements Lcom/instagram/android/feed/e/e;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/instagram/android/fragment/d",
        "<",
        "Lcom/instagram/android/feed/a/m;",
        ">;",
        "Lcom/instagram/android/feed/e/e;"
    }
.end annotation


# static fields
.field private static ad:Z

.field private static ae:Z


# instance fields
.field private af:Z

.field private ag:Z

.field private ah:Lcom/instagram/android/util/c;

.field private ai:Lcom/instagram/h/b/h;

.field private aj:Lcom/instagram/android/feed/e/b;

.field private ak:Lcom/facebook/b/a/j;

.field private al:Landroid/view/View;

.field private am:Landroid/os/Handler;

.field private an:Lcom/instagram/android/directshare/f/a;

.field private final ao:Lcom/facebook/a/e;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 82
    invoke-direct {p0}, Lcom/instagram/android/fragment/d;-><init>()V

    .line 99
    iput-boolean v0, p0, Lcom/instagram/android/fragment/dw;->af:Z

    .line 100
    iput-boolean v0, p0, Lcom/instagram/android/fragment/dw;->ag:Z

    .line 107
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/fragment/dw;->am:Landroid/os/Handler;

    .line 658
    new-instance v0, Lcom/instagram/android/fragment/ec;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/ec;-><init>(Lcom/instagram/android/fragment/dw;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/dw;->ao:Lcom/facebook/a/e;

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/fragment/dw;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 82
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->al:Landroid/view/View;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/fragment/dw;Landroid/view/View;)Landroid/view/View;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 82
    iput-object p1, p0, Lcom/instagram/android/fragment/dw;->al:Landroid/view/View;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/android/fragment/dw;Landroid/view/ViewGroup;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 82
    invoke-direct {p0, p1}, Lcom/instagram/android/fragment/dw;->b(Landroid/view/ViewGroup;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/fragment/dw;Ljava/io/File;J)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 82
    invoke-direct {p0, p1, p2, p3}, Lcom/instagram/android/fragment/dw;->a(Ljava/io/File;J)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/fragment/dw;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 82
    invoke-direct {p0, p1}, Lcom/instagram/android/fragment/dw;->c(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/fragment/dw;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 82
    invoke-direct {p0, p1}, Lcom/instagram/android/fragment/dw;->b(Z)V

    return-void
.end method

.method private a(Ljava/io/File;J)V
    .locals 11
    .parameter
    .parameter

    .prologue
    .line 234
    const/4 v2, 0x0

    .line 235
    const/4 v0, 0x0

    .line 237
    :try_start_0
    new-instance v3, Lcom/fasterxml/jackson/a/e;

    invoke-direct {v3}, Lcom/fasterxml/jackson/a/e;-><init>()V

    .line 238
    new-instance v1, Ljava/io/FileInputStream;

    invoke-direct {v1, p1}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 240
    :try_start_1
    new-instance v2, Ljava/io/BufferedInputStream;

    invoke-direct {v2, v1}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;)V

    .line 242
    invoke-virtual {v3, v2}, Lcom/fasterxml/jackson/a/e;->createParser(Ljava/io/InputStream;)Lcom/fasterxml/jackson/a/l;

    move-result-object v2

    .line 243
    :cond_0
    :goto_0
    invoke-virtual {v2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    move-result-object v3

    sget-object v4, Lcom/fasterxml/jackson/a/r;->c:Lcom/fasterxml/jackson/a/r;

    if-eq v3, v4, :cond_1

    .line 244
    invoke-virtual {v2}, Lcom/fasterxml/jackson/a/l;->getCurrentToken()Lcom/fasterxml/jackson/a/r;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    move-result-object v3

    if-nez v3, :cond_4

    .line 285
    :cond_1
    :goto_1
    if-eqz v1, :cond_2

    .line 286
    invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V

    .line 289
    :cond_2
    if-nez v0, :cond_3

    .line 290
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->am:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/fragment/ei;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/ei;-><init>(Lcom/instagram/android/fragment/dw;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 299
    :cond_3
    return-void

    .line 247
    :cond_4
    :try_start_2
    invoke-virtual {v2}, Lcom/fasterxml/jackson/a/l;->getCurrentName()Ljava/lang/String;

    move-result-object v3

    .line 248
    const-string v4, "items"

    invoke-virtual {v4, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_7

    .line 249
    invoke-virtual {v2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    .line 250
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    .line 251
    :goto_2
    invoke-virtual {v2}, Lcom/fasterxml/jackson/a/l;->nextToken()Lcom/fasterxml/jackson/a/r;

    move-result-object v4

    sget-object v5, Lcom/fasterxml/jackson/a/r;->e:Lcom/fasterxml/jackson/a/r;

    if-eq v4, v5, :cond_6

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v4

    const/4 v5, 0x5

    if-gt v4, v5, :cond_6

    .line 252
    invoke-static {v2}, Lcom/instagram/j/l;->a(Lcom/fasterxml/jackson/a/l;)Lcom/instagram/j/l;

    move-result-object v4

    .line 253
    if-eqz v4, :cond_6

    .line 254
    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_2

    .line 285
    :catchall_0
    move-exception v0

    :goto_3
    if-eqz v1, :cond_5

    .line 286
    invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V

    :cond_5
    throw v0

    .line 259
    :cond_6
    :try_start_3
    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-lez v2, :cond_1

    .line 260
    const/4 v0, 0x1

    .line 262
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    .line 263
    iget-object v2, p0, Lcom/instagram/android/fragment/dw;->am:Landroid/os/Handler;

    new-instance v6, Lcom/instagram/android/fragment/eh;

    invoke-direct {v6, p0, v3}, Lcom/instagram/android/fragment/eh;-><init>(Lcom/instagram/android/fragment/dw;Ljava/util/ArrayList;)V

    const-wide/16 v7, 0x0

    const-wide/16 v9, 0x1f4

    sub-long v3, v4, p2

    sub-long v3, v9, v3

    invoke-static {v7, v8, v3, v4}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v3

    invoke-virtual {v2, v6, v3, v4}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    goto :goto_1

    .line 279
    :cond_7
    if-eqz v3, :cond_0

    .line 281
    invoke-virtual {v2}, Lcom/fasterxml/jackson/a/l;->skipChildren()Lcom/fasterxml/jackson/a/l;
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_0

    .line 285
    :catchall_1
    move-exception v0

    move-object v1, v2

    goto :goto_3
.end method

.method private a(Ljava/lang/String;)V
    .locals 2
    .parameter

    .prologue
    .line 647
    new-instance v0, Lcom/instagram/android/fragment/hz;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->m()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/android/fragment/hz;-><init>(Landroid/support/v4/app/r;)V

    invoke-virtual {v0, p1}, Lcom/instagram/android/fragment/hz;->b(Ljava/lang/String;)Lcom/instagram/android/fragment/hz;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/fragment/hz;->e()V

    .line 650
    return-void
.end method

.method public static am()V
    .locals 1

    .prologue
    .line 572
    const/4 v0, 0x1

    sput-boolean v0, Lcom/instagram/android/fragment/dw;->ae:Z

    .line 573
    return-void
.end method

.method private an()Z
    .locals 4

    .prologue
    .line 129
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->Z:Ljava/lang/Long;

    if-eqz v0, :cond_0

    new-instance v0, Ljava/util/Date;

    invoke-direct {v0}, Ljava/util/Date;-><init>()V

    invoke-virtual {v0}, Ljava/util/Date;->getTime()J

    move-result-wide v0

    iget-object v2, p0, Lcom/instagram/android/fragment/dw;->Z:Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    sub-long/2addr v0, v2

    invoke-static {v0, v1}, Ljava/lang/Math;->abs(J)J

    move-result-wide v0

    const-wide/32 v2, 0x493e0

    cmp-long v0, v0, v2

    if-lez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private ao()V
    .locals 4

    .prologue
    .line 533
    invoke-static {}, Lcom/instagram/android/g/b;->a()Lcom/facebook/a/b;

    move-result-object v1

    .line 534
    invoke-static {}, Lcom/instagram/android/w/a;->a()Lcom/instagram/android/w/a;

    move-result-object v2

    .line 536
    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->v()Landroid/view/View;

    move-result-object v0

    sget v3, Lcom/facebook/aw;->button_find_friends:I

    invoke-virtual {v0, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    .line 538
    if-eqz v0, :cond_1

    .line 539
    invoke-direct {p0}, Lcom/instagram/android/fragment/dw;->ap()Z

    move-result v3

    if-nez v3, :cond_0

    invoke-virtual {v1}, Lcom/facebook/a/b;->b()Z

    move-result v1

    if-nez v1, :cond_0

    if-eqz v2, :cond_2

    .line 540
    :cond_0
    sget v1, Lcom/facebook/ba;->find_friends_to_follow:I

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 547
    :cond_1
    :goto_0
    return-void

    .line 541
    :cond_2
    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/instagram/android/w/a;->a(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 542
    sget v1, Lcom/facebook/ba;->find_vkontakte_friends:I

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    goto :goto_0

    .line 544
    :cond_3
    sget v1, Lcom/facebook/ba;->find_facebook_friends:I

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    goto :goto_0
.end method

.method private ap()Z
    .locals 2

    .prologue
    .line 555
    invoke-static {}, Lcom/instagram/service/a;->a()Lcom/instagram/service/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/service/a;->b()Lcom/instagram/android/model/b/e;

    move-result-object v0

    .line 557
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v0

    const-string v1, "1"

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private aq()Z
    .locals 2

    .prologue
    .line 576
    sget-boolean v0, Lcom/instagram/android/fragment/dw;->ae:Z

    .line 577
    const/4 v1, 0x0

    sput-boolean v1, Lcom/instagram/android/fragment/dw;->ae:Z

    .line 578
    return v0
.end method

.method static synthetic b(Lcom/instagram/android/fragment/dw;)Lcom/instagram/android/directshare/f/a;
    .locals 1
    .parameter

    .prologue
    .line 82
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->an:Lcom/instagram/android/directshare/f/a;

    return-object v0
.end method

.method public static b(Landroid/content/Context;)Ljava/io/File;
    .locals 3
    .parameter

    .prologue
    .line 166
    new-instance v0, Ljava/io/File;

    invoke-virtual {p0}, Landroid/content/Context;->getCacheDir()Ljava/io/File;

    move-result-object v1

    const-string v2, "MainFeed.json"

    invoke-direct {v0, v1, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    return-object v0
.end method

.method private b(Landroid/view/ViewGroup;)V
    .locals 3
    .parameter

    .prologue
    .line 497
    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->main_feed_empty:I

    const/4 v2, 0x1

    invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    .line 498
    const v0, 0x102000a

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    .line 499
    const v1, 0x1020004

    invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setEmptyView(Landroid/view/View;)V

    .line 501
    invoke-direct {p0}, Lcom/instagram/android/fragment/dw;->ao()V

    .line 503
    sget v0, Lcom/facebook/aw;->button_find_friends:I

    invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/fragment/ea;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/ea;-><init>(Lcom/instagram/android/fragment/dw;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 530
    return-void
.end method

.method static synthetic b(Lcom/instagram/android/fragment/dw;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 82
    invoke-direct {p0, p1}, Lcom/instagram/android/fragment/dw;->a(Ljava/lang/String;)V

    return-void
.end method

.method private b(Z)V
    .locals 2
    .parameter

    .prologue
    .line 123
    invoke-static {}, Lcom/instagram/android/service/PendingMediaService;->a()Z

    move-result v0

    if-nez v0, :cond_1

    if-nez p1, :cond_0

    invoke-direct {p0}, Lcom/instagram/android/fragment/dw;->an()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 124
    :cond_0
    const/4 v0, 0x1

    new-instance v1, Lcom/instagram/android/fragment/o;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/o;-><init>(Lcom/instagram/android/fragment/d;)V

    invoke-virtual {p0, v0, v1}, Lcom/instagram/android/fragment/dw;->a(ZLcom/instagram/android/fragment/o;)V

    .line 126
    :cond_1
    return-void
.end method

.method static synthetic b(Lcom/instagram/android/fragment/dw;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 82
    iput-boolean p1, p0, Lcom/instagram/android/fragment/dw;->af:Z

    return p1
.end method

.method private c(Ljava/lang/String;)V
    .locals 2
    .parameter

    .prologue
    .line 653
    new-instance v0, Lcom/instagram/android/fragment/hz;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->m()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/android/fragment/hz;-><init>(Landroid/support/v4/app/r;)V

    invoke-virtual {v0, p1}, Lcom/instagram/android/fragment/hz;->a(Ljava/lang/String;)Lcom/instagram/android/fragment/hz;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/fragment/hz;->e()V

    .line 656
    return-void
.end method

.method static synthetic c(Lcom/instagram/android/fragment/dw;)Z
    .locals 1
    .parameter

    .prologue
    .line 82
    invoke-direct {p0}, Lcom/instagram/android/fragment/dw;->ap()Z

    move-result v0

    return v0
.end method

.method static synthetic c(Lcom/instagram/android/fragment/dw;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 82
    iput-boolean p1, p0, Lcom/instagram/android/fragment/dw;->ag:Z

    return p1
.end method

.method static synthetic d(Lcom/instagram/android/fragment/dw;)Lcom/facebook/a/e;
    .locals 1
    .parameter

    .prologue
    .line 82
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->ao:Lcom/facebook/a/e;

    return-object v0
.end method


# virtual methods
.method protected synthetic Z()Lcom/instagram/android/feed/a/a;
    .locals 1

    .prologue
    .line 82
    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->al()Lcom/instagram/android/feed/a/m;

    move-result-object v0

    return-object v0
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 135
    new-instance v0, Lcom/instagram/android/fragment/dx;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/dx;-><init>(Lcom/instagram/android/fragment/dw;)V

    return-object v0
.end method

.method protected a(Lcom/instagram/android/d/j/f;)Lcom/instagram/android/d/e/s;
    .locals 2
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/f",
            "<",
            "Lcom/instagram/android/model/k;",
            ">;)",
            "Lcom/instagram/android/d/e/s;"
        }
    .end annotation

    .prologue
    .line 304
    new-instance v0, Lcom/instagram/android/fragment/ej;

    sget v1, Lcom/facebook/aw;->request_id_main_feed_media_request:I

    invoke-direct {v0, p0, p0, v1, p1}, Lcom/instagram/android/fragment/ej;-><init>(Lcom/instagram/android/fragment/dw;Lcom/instagram/android/fragment/d;ILcom/instagram/android/d/j/f;)V

    return-object v0
.end method

.method public a(IILandroid/content/Intent;)V
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 624
    const/4 v0, -0x1

    if-ne p2, v0, :cond_0

    .line 625
    const/4 v0, 0x5

    if-ne p1, v0, :cond_1

    .line 626
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->am:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/android/fragment/eb;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/eb;-><init>(Lcom/instagram/android/fragment/dw;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 643
    :cond_0
    :goto_0
    invoke-super {p0, p1, p2, p3}, Lcom/instagram/android/fragment/d;->a(IILandroid/content/Intent;)V

    .line 644
    return-void

    .line 636
    :cond_1
    invoke-static {}, Lcom/instagram/android/g/b;->a()Lcom/facebook/a/b;

    move-result-object v0

    .line 639
    iget-object v1, p0, Lcom/instagram/android/fragment/dw;->ao:Lcom/facebook/a/e;

    invoke-virtual {v0, v1}, Lcom/facebook/a/b;->a(Lcom/facebook/a/e;)V

    .line 640
    invoke-virtual {v0, p1, p2, p3}, Lcom/facebook/a/b;->a(IILandroid/content/Intent;)V

    goto :goto_0
.end method

.method public a(Landroid/content/Context;)V
    .locals 4
    .parameter

    .prologue
    .line 171
    invoke-super {p0, p1}, Lcom/instagram/android/fragment/d;->a(Landroid/content/Context;)V

    .line 172
    const-string v0, "%s#%s"

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    const-string v3, "MainFeedFragment"

    aput-object v3, v1, v2

    const/4 v2, 0x1

    const-string v3, "onAttach"

    aput-object v3, v1, v2

    invoke-static {v0, v1}, Lcom/facebook/e/b/g;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 176
    new-instance v0, Lcom/facebook/b/a/k;

    invoke-direct {v0, p1}, Lcom/facebook/b/a/k;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0}, Lcom/facebook/b/a/k;->a()Lcom/facebook/b/a/i;

    move-result-object v0

    const-string v1, "com.instagram.android.activity.BROADCAST_REFRESH_MAIN_FEED"

    new-instance v2, Lcom/instagram/android/fragment/ef;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/ef;-><init>(Lcom/instagram/android/fragment/dw;)V

    invoke-interface {v0, v1, v2}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v0

    const-string v1, "PendingMediaService.BROADCAST_INTENT_CHECKPOINT_REQUIRED"

    new-instance v2, Lcom/instagram/android/fragment/ee;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/ee;-><init>(Lcom/instagram/android/fragment/dw;)V

    invoke-interface {v0, v1, v2}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v0

    const-string v1, "INTENT_ACTION_UPDATE_INBOX_BADGE"

    new-instance v2, Lcom/instagram/android/fragment/ed;

    invoke-direct {v2, p0}, Lcom/instagram/android/fragment/ed;-><init>(Lcom/instagram/android/fragment/dw;)V

    invoke-interface {v0, v1, v2}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v0

    invoke-interface {v0}, Lcom/facebook/b/a/i;->a()Lcom/facebook/b/a/j;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/fragment/dw;->ak:Lcom/facebook/b/a/j;

    .line 200
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->ak:Lcom/facebook/b/a/j;

    invoke-interface {v0}, Lcom/facebook/b/a/j;->b()V

    .line 201
    return-void
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 4
    .parameter

    .prologue
    .line 387
    invoke-super {p0, p1}, Lcom/instagram/android/fragment/d;->a(Landroid/os/Bundle;)V

    .line 388
    new-instance v1, Lcom/instagram/android/feed/e/b;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->getContext()Landroid/content/Context;

    move-result-object v2

    sget-object v3, Lcom/instagram/pendingmedia/b/b;->b:Lcom/instagram/pendingmedia/b/b;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->Y()Lcom/instagram/android/feed/a/a;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/feed/e/f;

    invoke-direct {v1, v2, v3, v0, p0}, Lcom/instagram/android/feed/e/b;-><init>(Landroid/content/Context;Lcom/instagram/pendingmedia/b/b;Lcom/instagram/android/feed/e/f;Lcom/instagram/android/feed/e/e;)V

    iput-object v1, p0, Lcom/instagram/android/fragment/dw;->aj:Lcom/instagram/android/feed/e/b;

    .line 394
    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->ak()V

    .line 395
    const/4 v0, 0x1

    new-instance v1, Lcom/instagram/android/fragment/ek;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/ek;-><init>(Lcom/instagram/android/fragment/dw;)V

    invoke-virtual {p0, v0, v1}, Lcom/instagram/android/fragment/dw;->a(ZLcom/instagram/android/fragment/o;)V

    .line 419
    new-instance v0, Lcom/instagram/android/util/c;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/android/util/c;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/dw;->ah:Lcom/instagram/android/util/c;

    .line 420
    new-instance v0, Lcom/instagram/h/b/h;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->Y()Lcom/instagram/android/feed/a/a;

    move-result-object v2

    invoke-direct {v0, v1, p0, v2}, Lcom/instagram/h/b/h;-><init>(Landroid/app/Activity;Lcom/instagram/b/d;Lcom/instagram/h/b/g;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/dw;->ai:Lcom/instagram/h/b/h;

    .line 421
    new-instance v0, Lcom/instagram/android/directshare/f/a;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->m()Landroid/support/v4/app/r;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Lcom/instagram/android/directshare/f/a;-><init>(Landroid/content/Context;Landroid/support/v4/app/r;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/dw;->an:Lcom/instagram/android/directshare/f/a;

    .line 422
    return-void
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 472
    invoke-super {p0, p1, p2}, Lcom/instagram/android/fragment/d;->a(Landroid/view/View;Landroid/os/Bundle;)V

    .line 475
    iget-boolean v0, p0, Lcom/instagram/android/fragment/dw;->af:Z

    if-eqz v0, :cond_0

    .line 476
    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->v()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    invoke-direct {p0, v0}, Lcom/instagram/android/fragment/dw;->b(Landroid/view/ViewGroup;)V

    .line 478
    :cond_0
    return-void
.end method

.method protected a(Lcom/instagram/h/b/b;)V
    .locals 1
    .parameter

    .prologue
    .line 372
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->ai:Lcom/instagram/h/b/h;

    invoke-virtual {v0, p1}, Lcom/instagram/h/b/h;->b(Lcom/instagram/h/b/b;)V

    .line 373
    return-void
.end method

.method public a(Ljava/util/List;)V
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/f;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 596
    if-eqz p1, :cond_0

    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    .line 597
    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->Y()Lcom/instagram/android/feed/a/a;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/feed/a/m;

    invoke-virtual {v0, p1}, Lcom/instagram/android/feed/a/m;->b(Ljava/util/List;)V

    .line 599
    :cond_0
    invoke-super {p0, p1}, Lcom/instagram/android/fragment/d;->a(Ljava/util/List;)V

    .line 600
    return-void
.end method

.method public a(Ljava/util/Map;)V
    .locals 2
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 608
    const-string v0, "src"

    const-string v1, "timeline"

    invoke-interface {p1, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 609
    return-void
.end method

.method public ac()Z
    .locals 1

    .prologue
    .line 619
    invoke-static {}, Lcom/instagram/m/b/a;->a()Lcom/instagram/m/b/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/m/b/a;->q()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public af()Z
    .locals 1

    .prologue
    .line 604
    const/4 v0, 0x0

    return v0
.end method

.method protected ak()V
    .locals 4

    .prologue
    const/4 v1, 0x1

    .line 210
    sget-boolean v0, Lcom/instagram/android/fragment/dw;->ad:Z

    if-eqz v0, :cond_0

    .line 231
    :goto_0
    return-void

    .line 213
    :cond_0
    sput-boolean v1, Lcom/instagram/android/fragment/dw;->ad:Z

    .line 215
    iput-boolean v1, p0, Lcom/instagram/android/fragment/dw;->ac:Z

    .line 216
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 217
    new-instance v2, Ljava/lang/Thread;

    new-instance v3, Lcom/instagram/android/fragment/eg;

    invoke-direct {v3, p0, v0, v1}, Lcom/instagram/android/fragment/eg;-><init>(Lcom/instagram/android/fragment/dw;J)V

    invoke-direct {v2, v3}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {v2}, Ljava/lang/Thread;->start()V

    goto :goto_0
.end method

.method protected al()Lcom/instagram/android/feed/a/m;
    .locals 2

    .prologue
    .line 568
    new-instance v0, Lcom/instagram/android/feed/a/m;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->aa()Lcom/instagram/android/feed/a/i;

    move-result-object v1

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/feed/a/m;-><init>(Lcom/instagram/android/fragment/d;Lcom/instagram/android/feed/a/i;)V

    return-object v0
.end method

.method public b(Ljava/lang/String;)V
    .locals 2
    .parameter

    .prologue
    .line 685
    new-instance v0, Lcom/instagram/c/a;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/c/a;-><init>(Landroid/content/Context;)V

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/instagram/c/a;->a(Z)V

    .line 686
    return-void
.end method

.method public c()V
    .locals 0

    .prologue
    .line 585
    invoke-direct {p0}, Lcom/instagram/android/fragment/dw;->aq()Z

    .line 586
    invoke-super {p0}, Lcom/instagram/android/fragment/d;->c()V

    .line 587
    return-void
.end method

.method public c_()Z
    .locals 1

    .prologue
    .line 591
    invoke-static {}, Lcom/instagram/service/b;->c()Z

    move-result v0

    return v0
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 613
    const-string v0, "feed_timeline"

    return-object v0
.end method

.method public e()Z
    .locals 2

    .prologue
    .line 562
    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->u()Landroid/support/v4/app/aj;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->request_id_main_feed_media_request:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/aj;->b(I)Landroid/support/v4/a/c;

    move-result-object v0

    .line 563
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/support/v4/a/c;->h()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public e_()V
    .locals 0

    .prologue
    .line 377
    invoke-super {p0}, Lcom/instagram/android/fragment/d;->e_()V

    .line 378
    return-void
.end method

.method public f_()V
    .locals 0

    .prologue
    .line 382
    invoke-super {p0}, Lcom/instagram/android/fragment/d;->f_()V

    .line 383
    return-void
.end method

.method public k_()V
    .locals 1

    .prologue
    .line 205
    invoke-super {p0}, Lcom/instagram/android/fragment/d;->k_()V

    .line 206
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->ak:Lcom/facebook/b/a/j;

    invoke-interface {v0}, Lcom/facebook/b/a/j;->c()V

    .line 207
    return-void
.end method

.method public w()V
    .locals 5

    .prologue
    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 432
    invoke-super {p0}, Lcom/instagram/android/fragment/d;->w()V

    .line 434
    const-string v0, "%s#%s"

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/Object;

    const-string v2, "MainFeedFragment"

    aput-object v2, v1, v3

    const-string v2, "onResume"

    aput-object v2, v1, v4

    invoke-static {v0, v1}, Lcom/facebook/e/b/g;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 436
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->aj:Lcom/instagram/android/feed/e/b;

    invoke-virtual {v0}, Lcom/instagram/android/feed/e/b;->b()V

    .line 437
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->ah:Lcom/instagram/android/util/c;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->u()Landroid/support/v4/app/aj;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/instagram/android/util/c;->a(Landroid/support/v4/app/j;Landroid/support/v4/app/aj;)V

    .line 438
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->ai:Lcom/instagram/h/b/h;

    invoke-virtual {v0}, Lcom/instagram/h/b/h;->a()V

    .line 439
    invoke-direct {p0}, Lcom/instagram/android/fragment/dw;->ao()V

    .line 441
    invoke-direct {p0}, Lcom/instagram/android/fragment/dw;->aq()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 442
    invoke-virtual {p0}, Lcom/instagram/android/fragment/dw;->X()V

    .line 445
    :cond_0
    iget-boolean v0, p0, Lcom/instagram/android/fragment/dw;->ag:Z

    if-eqz v0, :cond_1

    .line 446
    invoke-direct {p0, v4}, Lcom/instagram/android/fragment/dw;->b(Z)V

    .line 447
    iput-boolean v3, p0, Lcom/instagram/android/fragment/dw;->ag:Z

    .line 450
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->an:Lcom/instagram/android/directshare/f/a;

    new-instance v1, Lcom/instagram/android/fragment/dz;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/dz;-><init>(Lcom/instagram/android/fragment/dw;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/directshare/f/a;->a(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 456
    return-void
.end method

.method public x()V
    .locals 1

    .prologue
    .line 460
    invoke-super {p0}, Lcom/instagram/android/fragment/d;->x()V

    .line 463
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/fragment/dw;->al:Landroid/view/View;

    .line 465
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->aj:Lcom/instagram/android/feed/e/b;

    invoke-virtual {v0}, Lcom/instagram/android/feed/e/b;->a()V

    .line 466
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->ai:Lcom/instagram/h/b/h;

    invoke-virtual {v0}, Lcom/instagram/h/b/h;->b()V

    .line 467
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->an:Lcom/instagram/android/directshare/f/a;

    invoke-virtual {v0}, Lcom/instagram/android/directshare/f/a;->b()V

    .line 468
    return-void
.end method

.method public y()V
    .locals 2

    .prologue
    .line 426
    invoke-super {p0}, Lcom/instagram/android/fragment/d;->y()V

    .line 427
    iget-object v0, p0, Lcom/instagram/android/fragment/dw;->am:Landroid/os/Handler;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V

    .line 428
    return-void
.end method
